import request from '@/utils/request'


let dict = {
	// 根据字典类型查询字典数据信息
	getDicts:function(dictType) {
	  return request({
	    url: '/system/dict/data/type/' + dictType,
	    method: 'get'
	  })
	},
	adjust:function(dicts){
		let return_dicts = []
		if(dicts && dicts.length>0){
			dicts.forEach(dict=>{
				return_dicts.push({"label":dict.dictLabel,"value":dict.dictValue})
			})
		}
		return return_dicts
	}
}

export default dict;




